package cn.edu.zsc.rbac.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * 工具类-日期时间操作
 *
 */
public class DateTimeUtils {

    private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");

    private DateTimeUtils() {

    }

    public static String format(LocalDateTime dateTime) {
        return dateTime.format(formatter);
    }
}
